<template>
    <div>
        <div class="goods-item" v-for="classify in list" :key="classify.sort">
            <img :src="classify.image">
            <p>{{classify.title}}</p>
        </div>
    </div>
</template>
<script>
export default {
    props:{
        list:{
            type:Array,
            default(){
                return new Array(10);
            }
        }
    }
}
</script>
<style lang="less" scoped>
.goods-item {
    width: 20%;
    // height: 2rem;
    text-align:center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    box-sizing:border-box;
    padding:0.1rem 0.1rem;
    img {
        width: 100%;
        height: 1.2rem;
        border-radius:0.2rem;
    }
    p{
        font-weight:bold;
        padding-top:10px;
        font-size:16px;
    }
}
</style>